/*Author:S.Genikhov
Creatin Date:
Last modified:11/Sept/2010
Reviewed by :

Version 3 with possiblitiest to : Login,get,Bye and simple Security check.
Support only TCP connection.

Short project description:
Bases reallisation of FTP server command like : cd ,send recieve file and commands,
by using of state machine*/

#include "ftpprotocol.h"

char         FTPevents  [][COMMANDLENGTH]={"NON","User","Pass","Bye","get","cd","ls"};



char      FTPresponds[][MAXPROMTLENGH]={
/*0*/     "\nInsert Password\n",
/*1*/     "\nSuccess, Welcome\n",
/*2*/     "\nFails, Wrong Password or User Name. Insert User.\n", /*\nFails, Wrong Password. Try Again\n*/
/*3*/     "\nFails, Wrong Password or User Name three times.\n Access denied. Bye",/*Fails, Wrong Password three times.\n Insert User Name\n*/
/*4*/     "\nIlligal Command\n",
/*5*/     "\nServer Error \n",
/*6*/     "\nWrong Command.Insert Password  \n",
/*7*/     "\nFile not existed\n",
/*8*/     "\nServer error occrured during file transferring \n",
/*9*/     "\nThis User Name is blocked\n",
/*10*/    "\nCommand can't be processed due to server problems\n",
/*11*/    "\nFolder not existed\n"
};



